package ooday01;

public class ExtendsTest {
    public static void main(String[] args) {
        Student tj = new Student();
        tj.name = "唐俊";
        tj.age = 23;
        tj.address = "光华公园";
        tj.className = "2507";
        tj.stuId = "2";
        tj.eat();
        tj.sleep();
        tj.sayHi();
        tj.study();
        Student zq = new Student("张麒",22,"孵化园","2508","1");
        zq.eat();
        zq.sleep();
        zq.sayHi();
        zq.study();
        Teacher teacher = new Teacher("张校睿",21,"家里","12000");
        teacher.eat();
        teacher.sleep();
        teacher.sayHi();
        teacher.teach();
        Doctor doctor = new Doctor();
    }
}
